#pragma once
#include <qstring.h>
#include "SymptomGroup.h"
#include <QVBoxLayout>
#include <qlabel.h>
#include <qradiobutton.h>
#include <qtextedit.h>

class SymptomGroup;

class SymptomUnit
{
public:
	SymptomUnit(SymptomGroup* parent,const QString& name,int row);
	SymptomGroup* getGroup(){return parent;}
	QString getName(){return name;}
	~SymptomUnit(void);
private:
	void _buildWidgets();
	void _addLabel();
	void _addRadioButtons();
	void _addTextArea();

	int row;
	QLabel* label;
	QRadioButton* noRadio;
	QRadioButton* yesRadio;
	QTextEdit* area;
	QString name;
	SymptomGroup* parent;
};

